﻿<UserControl x:Class="HOG.Controls.GameOverControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
    xmlns:hog="clr-namespace:BaseControls;assembly=BaseControls"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"	
    xmlns:im="clr-namespace:Microsoft.Expression.Interactivity.Media;assembly=Microsoft.Expression.Interactions"
    Height="570" Width="804">
    <Grid x:Name="LayoutRoot">
        <MediaElement x:Name="backgroundMusic" Source="/HOG;Component/Sounds/sound_game_end.mp3" AutoPlay="True" />
        <hog:HogBaseLevel x:Name="GameOver" Canvas.Left="52" Canvas.Top="4" Height="570" Width="804">
            <Image Height="570" Width="804" Canvas.Left="52" Canvas.Top="4" Source="/HOG;Component/Images/GameOver/GameOver.png" Stretch="Fill"/>
            <Rectangle Fill="#D8000000" Stroke="#D7000000" Height="509" Width="760" Canvas.Left="73" Canvas.Top="18" Opacity="0.725"/>
            <Button Height="55" Click="Button_Click" Style="{StaticResource ButtonHOGStyle}" Width="155" Content="{Binding Source={StaticResource CustomLocStrings}, Path=LocalizedStrings.endGame_Back}" Canvas.Left="378" Canvas.Top="411">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <im:PlaySoundAction IsEnabled="True" Source="/HOG;Component/Sounds/sound_button_click.mp3" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
            <TextBlock Height="73" HorizontalAlignment="Left" Width="236" Canvas.Left="336" Canvas.Top="85" FontFamily="Arial Black" FontSize="46.667" FontWeight="Bold" Foreground="Red" Text="Game Over" TextWrapping="Wrap"/>
        </hog:HogBaseLevel>
    </Grid>
</UserControl>
